package com.three.server.strategy.primary;

import com.smartcar.common.domain.request.OrderUserInsertRequest;
import com.smartcar.common.result.Result;
import com.three.server.strategy.inter.InsertOrderByUser;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ProjectName : drive
 * @PackageName : com.three.server.strategy.primary
 * @ClassName : PrimaryAddorder
 * @Author : ZhouTeng
 * @CreateTime : 2023/10/16 18:35
 */

@Component
public class PrimaryAddorder implements InsertOrderByUser {
    private Map<String, InsertOrderByUser> map;
    @Override
    public Result InsertOrder(OrderUserInsertRequest orderUserInsertRequest) {
        InsertOrderByUser insertOrderByUser = map.get("");
        return insertOrderByUser.InsertOrder(orderUserInsertRequest);
    }
}
